package com.constant;

import com.util.ReadResourceFileUtil;

import java.util.Map;

public class BaseConstant {
    public final static String FILE_BASE_DIR = "src/main/resources/";
    public final static char SPACE = ' ';
    public final static String CONSOLE = "console";
    public final static String TERMINAL = "terminal";
    private final static String PRINT_TYPE = "printType";

    private final static String configProperties = "config.properties";
    public final static Map<String, String> configMaps = ReadResourceFileUtil.loadConfigFromResource(configProperties);
    public final static String printType = configMaps.get(PRINT_TYPE);
    public final static Integer DEFAULT_LINE_PRINT_INTERVAL = Integer.parseInt(configMaps.get("defaultLinePrintInterval"));
    public final static Integer DEFAULT_Char_PRINT_INTERVAL = Integer.parseInt(configMaps.get("defaultCharPrintInterval"));

}
